package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.domain.DestinationTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

/**
 * spring-data-jpa操作接口
 *
 */
@Repository
public interface DestinationSearchRepository extends ElasticsearchRepository<DestinationTemplate, Long> {


    /**
     * 通过name查询目的地对象
     * @param keyword
     * @return
     */
    DestinationTemplate findByName(String keyword);
}
